package com.dragon.refect.classload;

/**
 * 命名空间演示案例
 *
 * @author dragon
 * @since 2019/11/22
 */
public class NameSpaceTest {

    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException,
            InstantiationException {
        MyClassLoader classLoader = new MyClassLoader("myClassLoader");
        classLoader.setPath("/Users/panlong/Downloads/");
        Class<?> myCat = classLoader.loadClass("com.dragon.refect.classload.MyCat");
        myCat.newInstance();
    }

}

